package one_to_one.un_un.to.un_un;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class Coeur implements Serializable {

	private static final long serialVersionUID = -5565821693453129711L;

	private int poids;
	private float debit;

	public Coeur() {
	}

	public Coeur(int poids, float debit) {
		this.poids = poids;
		this.debit = debit;
	}

	@Column(nullable = false, unique = false)
	public int getPoids() {
		return poids;
	}

	public void setPoids(int poids) {
		this.poids = poids;
	}

	@Column(nullable = false, unique = false)
	public float getDebit() {
		return debit;
	}

	public void setDebit(float debit) {
		this.debit = debit;
	}

	@Override
	public String toString() {
		return "Coeur [poids=" + poids + ", debit=" + debit + "]";
	}
}
